﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Swork03_28.Domain.TraceableInfos
{
    /// <summary>
    /// 公司表
    /// </summary>
    [Table("FirmInfo")]
    public class FirmInfo
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [StringLength(50)]
        public string? CompanyName { get; set; }

        /// <summary>
        /// 公司地址
        /// </summary>
        [StringLength(100)]
        public string? Address { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? FoundingTime { get; set; }

        /// <summary>
        /// 公司简介
        /// </summary>
        [StringLength(50)]
        public string? CampanyIntro { get; set; }

        /// <summary>
        /// 公司照片
        /// </summary>
        [StringLength(50)]
        public string? CampanyImage { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [StringLength(50)]
        public string? BatchId { get; set; }

        /// <summary>
        /// 养殖负责人
        /// </summary>
        [StringLength(50)]
        public string? Principal { get; set; }

        /// <summary>
        /// 养殖数量
        /// </summary>
        public int? Quantity { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string? licenseNumber { get;set; }

        /// <summary>
        /// 公司类型
        /// </summary>
        public FirmType FirmType { get; set; }
    }
    public enum FirmType
    {
        养殖公司 = 1,
        屠宰公司 = 2,
        深加工公司 = 3,
    }
}
